<template>
    <div class="demo2">
        <h2>学校名字:{{name}}</h2>
        <h2>学校地址:{{address}}</h2>
        <button @click="showName">点击显示学校名字</button>
    </div>
</template>

<script>
    //局部引入一组混合
    //import {mixin,mixin2} from './mixin'
    export default {
        data() {
            return {
                name:'尚硅谷',
                address:'北京'
            }
        },
        //mixins:[mixin,mixin2]//局部混合配置项
    }
</script>

<style>
    .demo2{
        background-color: orange;
    }
</style>